<template>
  <el-button @click="ck" type="success">开始下红包</el-button>
</template>

<script setup>
import RedWrapRain from 'red-wrap-rain'

let params = {
  num: 20, // 红包数量
  space: 500, // 生成红包间隔
  speedMax: 5, // 红包下落速度随机值__最大值
  speedMin: 1 // 红包下落速度随机值__最小值
}
let rwr = new RedWrapRain(params)
const ck = () => {
  rwr.start()
}
</script>

<style lang="scss" scoped>

</style>
